package util

import "time"

var TimeLayout = "2006-01-02 15:04:05"

func Time2String(t *time.Time) string {
	return t.Local().Format(TimeLayout)
}

func String2Time(tStr string) *time.Time {
	t, _ := time.ParseInLocation(TimeLayout, tStr, time.Local)
	return &t
}
